//logs.js
const util = require('../../utils/util.js')

Page({
  data: {
   images:[]
  },
  onLoad: function () {
    var that = this
      wx.request({
        url: 'https://lucashu.cn/1633/course/mobilelist', //仅为示例，并非真实的接口地址
        data: {

          x: '',
          y: ''
        },
        header: {
          'content-type': 'application/json' // 默认值
        },
        success: function (res) {
          console.log(res.data.result.banners),
            that.setData({
            images: res.data.result.banners
          })
        },
        fail: function (res) {
          console.log("fail")
        },
        complete: function (res) {
          console.log("complete")
        },
      })
  },
  mybindtap:function(e){

  }

})
